import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ELEMENT from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';

// 富文本插件
import AvueUeditor from 'avue-plugin-ueditor'
Vue.use(AvueUeditor)

import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
Vue.use(Avue);
import '../public/style.scss'
//复制组件=======================
import Copy from "@/components/copy"
Vue.component(Copy.name,Copy)
//图片查看组件==========================
import Picture from "@/components/Picture"
Vue.component(Picture.name,Picture)
//echart图===================================
import * as echarts from 'echarts';
Vue.prototype.$echart=echarts

//动效库
import 'animate.css';

//自定义弹框===========================
import {msg} from "./utils/common.js"

//动态路由权限=====================================
import './permission'

//自定义指令（loading)================================
import Directive from './directive'  //自定义loading


//markdown========================================================
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import Prism from 'prismjs';
VueMarkdownEditor.use(vuepressTheme, {
  Prism,
});
/* 2、v-md-editor 代码块关键字高亮  */
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
// 引入所有语言包
import hljs from 'highlight.js';
VueMarkdownEditor.use(githubTheme, {
  Hljs: hljs,
});
Vue.use(VueMarkdownEditor);
/* 3、v-md-editor 二次封装  */
import mdEditor from '@/components/v-md-editor';
Vue.component('MdEditor', mdEditor);

Vue.use(Directive)
Vue.use(ELEMENT,{size:'small'})

Vue.prototype.$msg = msg

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
